using System;

namespace F2Enum.Converters
{
    public class BooleanConveter : ConverterBase<bool>
    {
        public override bool Convert(string value)
        {
            bool result;
            if (bool.TryParse(value, out result))
                return result;
            throw new InvalidCastException("The Value Format Is Incorrect");
        }
    }
}